<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>动态绑定不适用的情况——内联样式</title>

</head>
<body>
<div id="app">
<h1 style="background-color: chocolate; text-decoration: underline">Hello, Vue!</h1>
    <h1 v-bind:style="style">Hello, World!</h1>
</div>

<script type="module">
    import {createApp} from "../../../js/vue.esm-browser.js";

    let app = createApp(
        {
            setup(){
                // let style = "background-color: red; text-decoration: underline"
                let style = {
                    backgroundColor: 'red',
                    textDecoration: 'underline'
                }
                return {
                    style
                }
            }
        }
    );

    app.mount("#app")
</script>
</body>
</html>